package io;

import java.io.*;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/14 16:11
 */
public class CopyDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("./src/image/img.png");
        FileOutputStream fos =new FileOutputStream("./src/image/img_c.png");
        int d;
        while ((d= fis.read())!=-1){
            fos.write(d);
        }
        System.out.println("复制完成");
        fis.close();
        fos.close();
    }
}
